package com.wpx.batch;

import com.wpx.batch.log.ExecuteLogger;

public class ExecuteContext {
    private WpxBatchJob job;

    private ExecuteParam executeParam;
    private ExecuteLogger executeLogger;

    public ExecuteContext(WpxBatchJob job, ExecuteParam executeParam,ExecuteLogger executeLogger) {
        this.job = job;
        this.executeParam = executeParam;
        this.executeLogger = executeLogger;
    }

    public <T> T getParam(Object key) {
        return executeParam.get(key);
    }

    public ExecuteLogger getExecuteLogger() {
        return executeLogger;
    }

    public WpxBatchJob getJob() {
        return job;
    }
}
